import request from '@/utils/request'
// 公告方法
export function noticeList(query) {
    return request({
        url: '/notice/selectByPage',
        method: 'get',
        params: query
    })
}
export function noticeFreeze(data) {
    return request({
        url: '/notice/updateStatus',
        method: 'post',
        data
    })
}
export function noticeUnlock(data) {
    return request({
        url: '/notice/updateStatus',
        method: 'post',
        data
    })
}
export function noticeById(data) {
    return request({
        url: '/notice/status/'+data,
        method: 'get',
    })
}
export function addNotice(data) {
    return request({
        url: '/notice/addNotice',
        method: 'post',
        data
    })
}
